Skip to content

Fixed IndexError list index out of range for printing results from th…#8

Open
D3V4N5H wants to merge 1 commit into
dwave-training:masterfrom
D3V4N5H:Fixed-IndexError-list-index-out-of-range-for-printing-results-from-the-sample-set
Open

Fixed IndexError list index out of range for printing results from th…#8
D3V4N5H wants to merge 1 commit into
dwave-training:masterfrom
D3V4N5H:Fixed-IndexError-list-index-out-of-range-for-printing-results-from-the-sample-set

Conversation

@D3V4N5H
Copy link
Copy Markdown

@D3V4N5H D3V4N5H commented May 3, 2022

Fixed IndexError list index out of range for printing results from the sample set

Signed-off-by: Devansh Trivedi sync@DVNSH.com

…e sample set

Signed-off-by: Devansh Trivedi <sync@DVNSH.com>
@vgoliber
Copy link
Copy Markdown
Contributor

vgoliber commented May 3, 2022

Can you share some information on the index error that you are seeing? It's running fine on my end.

@vgoliber
Copy link
Copy Markdown
Contributor

vgoliber commented May 3, 2022

This fix will only work if you are building a QUBO with variables named 1-7. There are 8 variables that could have a variety of names, so a more general solution is to use i in sample as we have done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants